package com.lagou.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.lagou.model.Response;
import com.lagou.model.dto.AddOrderResp;
import com.lagou.model.dto.PayOrderReq;
import com.lagou.model.dto.PayOrderResp;
import java.io.UnsupportedEncodingException;

public interface OrderService {

    /**
     * 下单
     *
     * @param customerId
     * @return
     */
  Response<AddOrderResp> addOrder(Integer customerId)
      throws JsonProcessingException, UnsupportedEncodingException;

  /**
   * 支付订单
   *
   * @param orderId
   * @return
   */
  Response<PayOrderResp> payOrder(Integer orderId);
}
